<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Symbol防止重写</title>
	</head>
	<body>
    <script type="text/javascript">
      //file1.js
      let name=Symbol();
      {
        var person={}
        person[name]='File1';
        console.log("person[name]:",person[name])
      }
      
      //file2.js
      {
        let name=Symbol();
        person[name]='File2';
        console.log("person[name]:",person[name])
      }
      
      
      console.log("person[name]:",person[name])//还是上游的值
    </script>
	</body>
</html>
